/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sistemperpustakaan.entity;

/**
 *
 * @author EKo
 */
public class TransaksiView {
    int noTransaksi;
    int idAnggota;
    String nis;
    String nama;
    int user;
    String namaUser;
    Object object;

    public TransaksiView() {
    }

    public TransaksiView(int noTransaksi, int idAnggota, String nis, String nama, int user, String namaUser) {
        this.noTransaksi = noTransaksi;
        this.idAnggota = idAnggota;
        this.nis = nis;
        this.nama = nama;
        this.user = user;
        this.namaUser = namaUser;
    }


    public Object getObject(int index) {
        switch(index){
            case 0: return noTransaksi;
            case 1: return idAnggota;
            case 2: return nis;
            case 3: return nama;
            case 4: return user;
            case 5: return namaUser;
            default: return null;
        }
    }

    public int getNoTransaksi() {
        return noTransaksi;
    }

    public void setNoTransaksi(int noTransaksi) {
        this.noTransaksi = noTransaksi;
    }

    public int getIdAnggota() {
        return idAnggota;
    }

    public void setIdAnggota(int idAnggota) {
        this.idAnggota = idAnggota;
    }

    public String getNim() {
        return nis;
    }

    public void setNim(String nis) {
        this.nis = nis;
    }

    public String getNama() {
        return nama;
    }

    public void setNama(String nama) {
        this.nama = nama;
    }

    public int getUser() {
        return user;
    }

    public void setUser(int user) {
        this.user = user;
    }

    public String getNamaUser() {
        return namaUser;
    }

    public void setNamaUser(String namaUser) {
        this.namaUser = namaUser;
    }

}
